package com.woniuxy.stage3demo.mapper.kang;

import com.woniuxy.stage3demo.bean.kang.CustomerMsgDetailBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CustomerMsgDetailMapper {

    @ResultType(CustomerMsgDetailBean.class)
    @Select("select id,sender_name senderName,massage,send_time sendTime from customer_msg_detail where fk_customer_session = #{msgId}")
    List<CustomerMsgDetailBean> getDetailByMsg(@Param("msgId") int msgId);

}
